﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace NGUYENTHANHDONG.OOP.Inhertance___Polimophism.SAMPLES.SAMPLES_01
{
    public partial class SAMPLE01 : Form
    {
        public SAMPLE01()
        {
            InitializeComponent();
        }

        private void SAMPLE01_Load(object sender, EventArgs e)
        {
            CHICKENS ck = new CHICKENS(true, true, false);
            lsbDanhSach.Items.Add("GA");
            lsbDanhSach.Items.Add("Mat: " + ck.ISMAT);
            lsbDanhSach.Items.Add("Chan: " + ck.ISCHAN);
            lsbDanhSach.Items.Add("Canh:" + ck.CANH);
            lsbDanhSach.Items.Add("Biet bay: " + ck.BietBay());
            lsbDanhSach.Items.Add("Vay Canh: " + ck.BietVayCanh());

            DOGS dg = new DOGS(true, true, false);
            lsbDanhSach.Items.Add("CHO");
           lsbDanhSach.Items.Add("Mat: " + dg.ISMAT);
            lsbDanhSach.Items.Add("Chan: " + dg.ISCHAN);
            lsbDanhSach.Items.Add("Duoi:" + dg.CANH);
            lsbDanhSach.Items.Add("Biet Sua: " + dg.BietSua());
            lsbDanhSach.Items.Add("Vay Duoi: " + dg.BietVayDuoi());
        }
    }
}
